﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;

namespace PSE.Deployment.SetupBase.Configuration
{
    public class AssemblyElementCollection : ConfigurationElementCollection 
    {
        protected override ConfigurationElement CreateNewElement()
        {
            return new AssemblyElement();
        }

        protected override object GetElementKey(ConfigurationElement element)
        {
            return ((AssemblyElement)element).Assembly;
        }

        public AssemblyElement this[int index]
        {
            get
            {
                return (AssemblyElement)BaseGet(index);
            }
        }

        public new AssemblyElement this[string name]
        {
            get
            {
                return (AssemblyElement)BaseGet(name);
            }
        }

    }
}